/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package converter.core.db.entity;

import java.io.Serializable;
import java.math.BigInteger;
import java.util.Date;
import javax.persistence.Basic;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.Lob;
import javax.persistence.NamedQueries;
import javax.persistence.NamedQuery;
import javax.persistence.Table;
import javax.persistence.Temporal;
import javax.persistence.TemporalType;

/**
 *
 * @author Snark
 */
@Entity
@Table(name = "SYS_AU_FIELDS")
@NamedQueries({
    @NamedQuery(name = "SysAuFields.findAll", query = "SELECT s FROM SysAuFields s"),
    @NamedQuery(name = "SysAuFields.findBySysFldorder", query = "SELECT s FROM SysAuFields s WHERE s.sysFldorder = :sysFldorder"),
    @NamedQuery(name = "SysAuFields.findBySysGuid", query = "SELECT s FROM SysAuFields s WHERE s.sysGuid = :sysGuid"),
    @NamedQuery(name = "SysAuFields.findBySysState", query = "SELECT s FROM SysAuFields s WHERE s.sysState = :sysState"),
    @NamedQuery(name = "SysAuFields.findBySysRev", query = "SELECT s FROM SysAuFields s WHERE s.sysRev = :sysRev"),
    @NamedQuery(name = "SysAuFields.findBySysCreated", query = "SELECT s FROM SysAuFields s WHERE s.sysCreated = :sysCreated"),
    @NamedQuery(name = "SysAuFields.findBySysUpdated", query = "SELECT s FROM SysAuFields s WHERE s.sysUpdated = :sysUpdated"),
    @NamedQuery(name = "SysAuFields.findBySysCreator", query = "SELECT s FROM SysAuFields s WHERE s.sysCreator = :sysCreator"),
    @NamedQuery(name = "SysAuFields.findBySysUser", query = "SELECT s FROM SysAuFields s WHERE s.sysUser = :sysUser"),
    @NamedQuery(name = "SysAuFields.findBySysGuidfk", query = "SELECT s FROM SysAuFields s WHERE s.sysGuidfk = :sysGuidfk"),
    @NamedQuery(name = "SysAuFields.findBySysParentguid", query = "SELECT s FROM SysAuFields s WHERE s.sysParentguid = :sysParentguid"),
    @NamedQuery(name = "SysAuFields.findByName", query = "SELECT s FROM SysAuFields s WHERE s.name = :name"),
    @NamedQuery(name = "SysAuFields.findByAlias", query = "SELECT s FROM SysAuFields s WHERE s.alias = :alias"),
    @NamedQuery(name = "SysAuFields.findByCaptionscript", query = "SELECT s FROM SysAuFields s WHERE s.captionscript = :captionscript"),
    @NamedQuery(name = "SysAuFields.findByLookupfieldslist", query = "SELECT s FROM SysAuFields s WHERE s.lookupfieldslist = :lookupfieldslist"),
    @NamedQuery(name = "SysAuFields.findByVisible", query = "SELECT s FROM SysAuFields s WHERE s.visible = :visible"),
    @NamedQuery(name = "SysAuFields.findByReadonly", query = "SELECT s FROM SysAuFields s WHERE s.readonly = :readonly"),
    @NamedQuery(name = "SysAuFields.findByIsnotnull", query = "SELECT s FROM SysAuFields s WHERE s.isnotnull = :isnotnull"),
    @NamedQuery(name = "SysAuFields.findByNotexportable", query = "SELECT s FROM SysAuFields s WHERE s.notexportable = :notexportable"),
    @NamedQuery(name = "SysAuFields.findByDrilldownfk", query = "SELECT s FROM SysAuFields s WHERE s.drilldownfk = :drilldownfk")})
public class SysAuFields implements Serializable {
    private static final long serialVersionUID = 1L;
    @Column(name = "SYS_FLDORDER")
    private Integer sysFldorder;
    @Id
    @Basic(optional = false)
    @Column(name = "SYS_GUID")
    private String sysGuid;
    @Column(name = "SYS_STATE")
    private Integer sysState;
    @Column(name = "SYS_REV")
    private BigInteger sysRev;
    @Column(name = "SYS_CREATED")
    @Temporal(TemporalType.TIMESTAMP)
    private Date sysCreated;
    @Column(name = "SYS_UPDATED")
    @Temporal(TemporalType.TIMESTAMP)
    private Date sysUpdated;
    @Column(name = "SYS_CREATOR")
    private String sysCreator;
    @Column(name = "SYS_USER")
    private String sysUser;
    @Column(name = "SYS_GUIDFK")
    private String sysGuidfk;
    @Column(name = "SYS_PARENTGUID")
    private String sysParentguid;
    @Column(name = "NAME")
    private String name;
    @Column(name = "ALIAS")
    private String alias;
    @Column(name = "CAPTIONSCRIPT")
    private String captionscript;
    @Lob
    @Column(name = "LOOKUPFILTER")
    private String lookupfilter;
    @Column(name = "LOOKUPFIELDSLIST")
    private String lookupfieldslist;
    @Column(name = "VISIBLE")
    private String visible;
    @Column(name = "READONLY")
    private Integer readonly;
    @Column(name = "ISNOTNULL")
    private String isnotnull;
    @Column(name = "NOTEXPORTABLE")
    private Integer notexportable;
    @Column(name = "DRILLDOWNFK")
    private String drilldownfk;
    @Lob
    @Column(name = "SELECTABLE")
    private String selectable;
    @Lob
    @Column(name = "WP_TEMPLATE")
    private String wpTemplate;

    public SysAuFields() {
    }

    public SysAuFields(String sysGuid) {
        this.sysGuid = sysGuid;
    }

    public Integer getSysFldorder() {
        return sysFldorder;
    }

    public void setSysFldorder(Integer sysFldorder) {
        this.sysFldorder = sysFldorder;
    }

    public String getSysGuid() {
        return sysGuid;
    }

    public void setSysGuid(String sysGuid) {
        this.sysGuid = sysGuid;
    }

    public Integer getSysState() {
        return sysState;
    }

    public void setSysState(Integer sysState) {
        this.sysState = sysState;
    }

    public BigInteger getSysRev() {
        return sysRev;
    }

    public void setSysRev(BigInteger sysRev) {
        this.sysRev = sysRev;
    }

    public Date getSysCreated() {
        return sysCreated;
    }

    public void setSysCreated(Date sysCreated) {
        this.sysCreated = sysCreated;
    }

    public Date getSysUpdated() {
        return sysUpdated;
    }

    public void setSysUpdated(Date sysUpdated) {
        this.sysUpdated = sysUpdated;
    }

    public String getSysCreator() {
        return sysCreator;
    }

    public void setSysCreator(String sysCreator) {
        this.sysCreator = sysCreator;
    }

    public String getSysUser() {
        return sysUser;
    }

    public void setSysUser(String sysUser) {
        this.sysUser = sysUser;
    }

    public String getSysGuidfk() {
        return sysGuidfk;
    }

    public void setSysGuidfk(String sysGuidfk) {
        this.sysGuidfk = sysGuidfk;
    }

    public String getSysParentguid() {
        return sysParentguid;
    }

    public void setSysParentguid(String sysParentguid) {
        this.sysParentguid = sysParentguid;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getAlias() {
        return alias;
    }

    public void setAlias(String alias) {
        this.alias = alias;
    }

    public String getCaptionscript() {
        return captionscript;
    }

    public void setCaptionscript(String captionscript) {
        this.captionscript = captionscript;
    }

    public String getLookupfilter() {
        return lookupfilter;
    }

    public void setLookupfilter(String lookupfilter) {
        this.lookupfilter = lookupfilter;
    }

    public String getLookupfieldslist() {
        return lookupfieldslist;
    }

    public void setLookupfieldslist(String lookupfieldslist) {
        this.lookupfieldslist = lookupfieldslist;
    }

    public String getVisible() {
        return visible;
    }

    public void setVisible(String visible) {
        this.visible = visible;
    }

    public Integer getReadonly() {
        return readonly;
    }

    public void setReadonly(Integer readonly) {
        this.readonly = readonly;
    }

    public String getIsnotnull() {
        return isnotnull;
    }

    public void setIsnotnull(String isnotnull) {
        this.isnotnull = isnotnull;
    }

    public Integer getNotexportable() {
        return notexportable;
    }

    public void setNotexportable(Integer notexportable) {
        this.notexportable = notexportable;
    }

    public String getDrilldownfk() {
        return drilldownfk;
    }

    public void setDrilldownfk(String drilldownfk) {
        this.drilldownfk = drilldownfk;
    }

    public String getSelectable() {
        return selectable;
    }

    public void setSelectable(String selectable) {
        this.selectable = selectable;
    }

    public String getWpTemplate() {
        return wpTemplate;
    }

    public void setWpTemplate(String wpTemplate) {
        this.wpTemplate = wpTemplate;
    }

    @Override
    public int hashCode() {
        int hash = 0;
        hash += (sysGuid != null ? sysGuid.hashCode() : 0);
        return hash;
    }

    @Override
    public boolean equals(Object object) {
        // TODO: Warning - this method won't work in the case the id fields are not set
        if (!(object instanceof SysAuFields)) {
            return false;
        }
        SysAuFields other = (SysAuFields) object;
        if ((this.sysGuid == null && other.sysGuid != null) || (this.sysGuid != null && !this.sysGuid.equals(other.sysGuid))) {
            return false;
        }
        return true;
    }

    @Override
    public String toString() {
        return "javaapplication1.entity.SysAuFields[ sysGuid=" + sysGuid + " ]";
    }
    
}
